<h1>Edycja producenta</h1>

<form method="post" enctype="multipart/form-data" id="addManufacturer">
	
{mainoptions title="Dane ogólne"}	
<table cellpadding="0" cellspacing="0" width="100%" class="commonTable">
	<tr>
		<th>Nazwa</th>
		<td><input type="text" name="name" value="{$obj->getName()}" /></td>
	</tr>
	{if $obj->getImage()|strlen gt 0 }
	<tr>
		<th>Aktualne logo:</th>
		<td>
			<img src="{$urlStatic}/{image src=$obj->getImage() w=100 h=100}" />
		</td>		
	</tr>	
	{/if}
	<tr>
		<th>Nowe logo:</th>
		<td>
			<input type="file" name="image" />
		</td>		
	</tr>
		<tr>
			<th>Aktywny:</th>
			<td>
				<input type="radio" value="1" id="active_1" name="active" {if $obj->getActive() eq 1}checked="checked"{/if} /><label for="active_1">tak</label>
				<input type="radio" value="0" id="active_0"  name="active" {if $obj->getActive() eq 0}checked="checked"{/if}  /><label for="active_0">nie</label>
			</td>
		</tr>	
</table>
{/mainoptions}

{mainoptions title="Dane ogólne"}
<table cellpadding="0" cellspacing="0" width="100%" class="commonTable">
			<tr>
				<th><strong>Url:</strong></th>
				<td>
					<input type="text" value="{$obj->GetSlug()}" id="slug" name="slug"/>
				</td>
			</tr>
</table>
{/mainoptions}

{mainoptions}
	<input type="submit" value="Zapisz i przejdź do listy" />
	<input type="button" value="Anuluj" onclick="document.location='{url Manufacturer=Index}'" />
{/mainoptions}
</form>	